//
//  SingleViewController.m
//  PlayADS
//
//  Created by 周莹 on 15/12/21.
//  Copyright © 2015年 周莹. All rights reserved.
//

#import "SingleViewController.h"
#import "ButtonView.h"
#define ViewHiaght  55
#import "CHViews.h"

@interface SingleViewController ()
//@property(nonatomic,strong)ButtonView  *buttonview1;
//
//@property(nonatomic,strong)ButtonView  *buttonview2;
//
//@property(nonatomic,strong)ButtonView  *buttonview3;
//
//@property(nonatomic,strong)ButtonView  *buttonview4;
//
//
//@property(nonatomic,strong)ButtonView  *buttonview5;
//
//@property(nonatomic,strong)ButtonView  *buttonview6;





@end

@implementation SingleViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    CGFloat  viewH  = SCALE_WIDTH(ViewHiaght);
    CGFloat  viewW  = SCALE_WIDTH(AllWidtch);

    CHViews *views1  = [[CHViews alloc] initWithFrame:CGRectMake(0, 10, AllWidtch, viewH)];
    [views1  initwithTextLabel:@"性别" withTextLabel:@"男" withTextLabel:@"女" withTextLabel:@""];
    views1.backgroundColor = [UIColor orangeColor];
    [self.view addSubview:views1];
    
    
    
    
    CHViews *views2  = [[CHViews alloc] initWithFrame:CGRectMake(0, CGRectGetMaxY(views1.frame)+10, AllWidtch, viewH)];
     [views2  initwithTextLabel:@"婚姻状况" withTextLabel:@"单身" withTextLabel:@"未婚" withTextLabel:@"已婚"];
    views2.backgroundColor = [UIColor orangeColor];
    [self.view addSubview:views2];
    
    

    CHViews *views3  = [[CHViews alloc] initWithFrame:CGRectMake(0, CGRectGetMaxY(views2.frame)+10, AllWidtch, viewH)];
    [views3  initwithTextLabel:@"住房状况" withTextLabel:@"自有房" withTextLabel:@"常住房" withTextLabel:@"住宿舍"];
    views3.backgroundColor = [UIColor orangeColor];
    [self.view addSubview:views3];
    

    CHViews *views4  = [[CHViews alloc] initWithFrame:CGRectMake(0, CGRectGetMaxY(views3.frame)+10, AllWidtch, viewH)];
    [views4  initwithTextLabel:@"车辆情况" withTextLabel:@"自有车" withTextLabel:@"营运车辆" withTextLabel:@"无"];
    views4.backgroundColor = [UIColor orangeColor];
    [self.view addSubview:views4];
    

    
    CHViews *views5  = [[CHViews alloc] initWithFrame:CGRectMake(0, CGRectGetMaxY(views4.frame)+10, AllWidtch, viewH)];
    [views5  initwithTextLabel:@"学历情况" withTextLabel:@"高中以下" withTextLabel:@"本科" withTextLabel:@"博士以上"];
    views5.backgroundColor = [UIColor orangeColor];
    [self.view addSubview:views5];
    

    
    
    CHViews *views6= [[CHViews alloc] initWithFrame:CGRectMake(0, CGRectGetMaxY(views5.frame)+10, AllWidtch, viewH)];
      [views6  initwithTextLabel:@"" withTextLabel:@"" withTextLabel:@"" withTextLabel:@""];
    views6.backgroundColor = [UIColor orangeColor];
    [self.view addSubview:views6];
    

    
    
    
//    self.buttonview1 = [[ButtonView alloc] initWithFrame:CGRectMake(0, 6, AllWidtch, ViewHiaght) withTextLabel:@"性别" withTextLabel:@"男" withTextLabel:@"女" withTextLabel:@"nil"];
//
//    [self.view  addSubview:self.buttonview1];
//
//    
//    
//    self.buttonview2 = [[ButtonView alloc] initWithFrame:CGRectMake(0, CGRectGetMaxY(self.buttonview1.frame)+10, AllWidtch, ViewHiaght) withTextLabel:@"婚姻状况" withTextLabel:@"单身" withTextLabel:@"恋爱" withTextLabel:@"已婚"];
//    
//    [self.view  addSubview:self.buttonview2];
//
//
//    self.buttonview3 = [[CHViews alloc] initWithFrame:CGRectMake(0, CGRectGetMaxY(self.buttonview2.frame)+10, AllWidtch, ViewHiaght) withTextLabel:@"住房情况" withTextLabel:@"自有房" withTextLabel:@"常租房" withTextLabel:@"住宿舍"];
//    
//    [self.view  addSubview:self.buttonview3];
//    
//    self.buttonview4 = [[CHViews alloc] initWithFrame:CGRectMake(0, CGRectGetMaxY(self.buttonview3.frame)+10, AllWidtch, ViewHiaght) withTextLabel:@"车辆情况" withTextLabel:@"自有轿车" withTextLabel:@"营运车辆" withTextLabel:@"无车"];
//    
//    [self.view  addSubview:self.buttonview4];
//    
//    
//    
//    self.buttonview5 = [[CHViews alloc] initWithFrame:CGRectMake(0, CGRectGetMaxY(self.buttonview4.frame)+10, AllWidtch, ViewHiaght) withTextLabel:@"学历情况" withTextLabel:@"高中以下" withTextLabel:@"大学本科" withTextLabel:@"博士硕士"];
//    
//    [self.view  addSubview:self.buttonview5];
//    
//    self.buttonview6 = [[CHViews alloc] initWithFrame:CGRectMake(0, CGRectGetMaxY(self.buttonview5.frame)+10, AllWidtch, ViewHiaght) withTextLabel:@"" withTextLabel:@"" withTextLabel:@"" withTextLabel:@""];
//    
//    [self.view  addSubview:self.buttonview6];
//    
//
//    
    
    
    
  
//    self.buttonview2 = [[ButtonView  alloc] initWithFrame:CGRectMake(0, CGRectGetMaxY(self.buttonview1.frame)+10,AllWidtch, ViewHiaght)];
//    [self.view  addSubview:self.buttonview2];
    
    
//    self.buttonview3 = [[ButtonView  alloc] initWithFrame:CGRectMake(0, CGRectGetMaxY(self.buttonview2.frame)+10,AllWidtch, ViewHiaght)];
//    [self.view  addSubview:self.buttonview3];
//    
//    
//    self.buttonview4 = [[ButtonView  alloc] initWithFrame:CGRectMake(0, CGRectGetMaxY(self.buttonview3.frame)+10,AllWidtch, ViewHiaght)];
//    [self.view  addSubview:self.buttonview4];
    
    
//    self.buttonview5 = [[ButtonView  alloc] initWithFrame:CGRectMake(0, CGRectGetMaxY(self.buttonview4.frame)+10,AllWidtch, ViewHiaght)];
//    [self.view  addSubview:self.buttonview5];
//    
//    self.buttonview6 = [[ButtonView  alloc] initWithFrame:CGRectMake(0, CGRectGetMaxY(self.buttonview5.frame)+10,AllWidtch, ViewHiaght)];
//    [self.view  addSubview:self.buttonview6];



}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
